﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace SmartProject.BusinessObjects
{
    public class Username : BusinessRulePreference
    {
        public Username()
        {
            BusinessRule[] businessRules = { new BusinessRules.EMailAsUserName(),
                                             new BusinessRules.FirstInitialAndLastNameUserName(),
                                             new BusinessRules.UserNameSimple() };
            base.Initialize("Username", businessRules);
        }

        /// <summary>
        /// Indicates that this preference is only configurable when configured for the
        /// the first time.
        /// </summary>
        public override bool IsInitialSetupOnly
        {
            get { return true; }
        }
    }
}
